package com.ruanjian.reggie.service.imp;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruanjian.reggie.entity.DishFlavor;
import com.ruanjian.reggie.mapper.DishFlavorMapper;
import com.ruanjian.reggie.service.DishFlavorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DishFlavorServiceImpl extends ServiceImpl< DishFlavorMapper,DishFlavor> implements DishFlavorService {
    @Autowired
    DishFlavorMapper dishFlavorMapper;

    @Override
    public List<DishFlavor> queryByDishId(String id) {
        return dishFlavorMapper.selectList(new LambdaQueryWrapper<DishFlavor>().in(DishFlavor::getDishId,id));
    }
}
